<script setup>
import { ref } from 'vue'
const count = ref(0)
const validate = () => {
  console.log('表单校验')
}
// 传出子组件的数据或方法
defineExpose({count, validate})
</script>

<template>
  <div class="form-page">
    我是form组件
  </div>
</template>

<style lang="scss" scoped></style>
